package com.yuda.common.api.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yuda.common.core.annotation.Excel;
import com.yuda.common.core.web.domain.BaseEntity;

/**
 * 省对象 sparta_province
 *
 * @author wyn
 * @date 2021-05-13
 */
public class SpartaProvince extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Integer id;

    /** 省名 */
    @Excel(name = "省名")
    private String name;

    /** 省会 */
    @Excel(name = "省会")
    private String centerCity;

    /** 0默认   1使用 */
    @Excel(name = "0默认   1使用")
    private Long status;

    /** 考区（全国一卷为1，二卷为2） */
    @Excel(name = "考区", readConverterExp = "全=国一卷为1，二卷为2")
    private Integer paperType;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCenterCity(String centerCity)
    {
        this.centerCity = centerCity;
    }

    public String getCenterCity()
    {
        return centerCity;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setPaperType(Integer paperType)
    {
        this.paperType = paperType;
    }

    public Integer getPaperType()
    {
        return paperType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("centerCity", getCenterCity())
            .append("status", getStatus())
            .append("paperType", getPaperType())
            .toString();
    }
}
